package utils;



import java.io.Serializable;
import java.util.HashMap;

public class World implements Serializable {

	private HashMap<Integer, Room> _rooms = new HashMap<Integer,Room>();
	private int _numberOfRooms;
	private int _xMax;
	private int _yMax;
	
	public World(int numberOfRooms, int x, int y) {
		_numberOfRooms = numberOfRooms;
		_xMax = x;
		_yMax = y;
	}
	
	public Room getRoom(int id){
		return _rooms.get(id);
	}
	
	public int getXmax(){
		return _xMax;
	}
	
	public int getYmax(){
		return _yMax;
	}

	public void setRooms(int id, Room r){
		_rooms.put(id, r);
	}
	
	public int getNumberofRooms() {
		return _numberOfRooms;
	}
	
}